import React from "react";
import { NavigationContainer,NavigationState } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import {VisionCameraExampleApp} from "./BaseTestCase";
import Page from "./MultipleDevices/pages/index";
import HomeDemo from "./Home";

const Stack = createStackNavigator();
export class App extends React.Component {
    render() {
        return <NavigationContainer
         >
            <Stack.Navigator initialRouteName="Home">
                <Stack.Screen name="Home" component={HomeDemo} />
                <Stack.Screen name="BaseTestCase" component={VisionCameraExampleApp} />
                <Stack.Screen name="MultipleDevices" component={Page} />
            </Stack.Navigator>
        </NavigationContainer>;
    };
}

export default {
  displayName: 'react-native-vision-camera',
  framework: 'React',
  category: 'UI',
  title: 'react-native-vision-camera',
  documentationURL: 'https://github.com/react-native-oh-library/react-native-vision-camera',
  description: 'React Native Vision Camera',
  examples: [
    {
      title: 'react-native-vision-camera',
      render: function (): any {
        return <App />;
      },
    },
  ],
};

